#include "Feed.h"

Feed::~Feed()
{
}

ostream & operator<<(ostream & out, Feed & feed)
{
    out << "[Feed: title=" << feed.title << ", author=" << feed.
	author << ", description=" << feed.
	description << ", page=" << feed.pageUrl << ", feed=" << feed.
	feedUrl << "]";

    return out;
}

string Feed::getTitle()
{
    return title;
}

string Feed::getAuthor()
{
    return author;
}

string Feed::getDescription()
{
    return description;
}

string Feed::getFeedUrl()
{
    return feedUrl;
}

string Feed::getPageUrl()
{
    return pageUrl;
}

void Feed::setTitle(string title)
{
    this->title = title;
}

void Feed::setAuthor(string author)
{
    this->author = author;
}

void Feed::setDescription(string description)
{
    this->description = description;
}

void Feed::setFeedUrl(string feedUrl)
{
    this->feedUrl = feedUrl;
}

void Feed::setPageUrl(string pageUrl)
{
    this->pageUrl = pageUrl;
}


void Feed::setPosts(vector<Post> posts)
{
    this->posts = posts; 
}

vector<Post> Feed::getPosts()
{
    return posts;
}
